// Home
import Home from 'components/Home/Home'
import SellOnline from 'components/Home/SellOnline/SellOnline'

// Seller
import Seller from 'components/Seller/Seller'

// Mine
import Mine from 'components/Mine/Mine'
import Login from 'components/Mine/Login/Login'

let routes = [
  // {
  //   path: "/:appid/",
  //   component: Home,
  //   exact: true
  // },
  // Home
  {
    path: "/:appid/home",
    component: Home,
    auth: false
  },
  {
    path: "/:appid/sellOnline/:type/:shopCode",
    component: SellOnline,
    auth: false
  },
  // Seller
  {
    path: "/:appid/seller",
    component: Seller,
    auth: false
  },
  // Mine
  {
    path: "/:appid/mine",
    component: Mine,
    auth: true
  },
  {
    path: "/:appid/login",
    component: Login,
    auth: false
  }
]

export default routes